﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Home : System.Web.UI.Page
{
    ItemDAO itemDAO = new ItemDAO();
    IList<Item> list = new List<Item>();
    protected void Page_Load(object sender, EventArgs e)
    {

        if (!IsPostBack)
        {
            list = itemDAO.GetItems();
            datalist_Items.DataSource = list;
            datalist_Items.DataBind();
        }
     

        
    }
}